package cate.common.table.res.compose;

import cate.common.table.EExcelNoteField;
import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;

@NoteClass(value = "合成")
public class ComposeItemRow extends ERow {

    @EExcelNoteField(fieldName = "合成目标",defaultValue = "")
    public String targetStr;
    @EExcelNoteField(fieldName = "合成消耗", defaultValue = "")
    public String costStr;
    @EExcelNoteField(fieldName = "失败返还", defaultValue = "")
    public String failStr;

    @EExcelNoteField(fieldName = "合成概率", defaultValue = "100")
    public double rate;

    @EExcelNoteField(fieldName = "限制次数", defaultValue = "-1")
    public int limitTimes;

    @EExcelNoteField(fieldName = "重置类型", defaultValue = "0")
    public int resetType;

    @EExcelNoteField(fieldName = "开始的开服天数", defaultValue = "0")
    public int startDay;
    @EExcelNoteField(fieldName = "结束的开服天数", defaultValue = "999")
    public int endDay;

    @EExcelNoteField(fieldName = "开始自然日时间", defaultValue = "")
    public String startTimeStr;
    @EExcelNoteField(fieldName = "结束自然日时间", defaultValue = "")
    public String endTimeStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
    }


//    cfg.startTime = TimeTool.parseTime(row.startTimeStr);
//    cfg.endTime = TimeTool.parseTime(row.endTimeStr);




}
